﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RecruitStudents.Utility.Const
{
    public class ConstExamLevel
    {
        /// <summary>
        /// 未考试
        /// </summary>
        public const string WKS = "未考试";
        /// <summary>
        /// 初试
        /// </summary>
        public const string CS = "初试";
        /// <summary>
        /// 复试
        /// </summary>
        public const string FS = "复试";
        /// <summary>
        /// 三试
        /// </summary>
        public const string SS = "三试";
        /// <summary>
        /// 四试
        /// </summary>
        public const string SSS = "四试";
        /// <summary>
        /// 五试
        /// </summary>
        public const string WWS = "五试";
        /// <summary>
        /// 六试
        /// </summary>
        public const string LLS = "六试";
        /// <summary>
        /// 未考试值0
        /// </summary>
        public const int WKS_Value = 0;
        /// <summary>
        /// 初试1
        /// </summary>
        public const int CS_Value = 1;
        /// <summary>
        /// 复试2
        /// </summary>
        public const int FS_Value = 2;
        /// <summary>
        /// 三试3
        /// </summary>
        public const int SS_Value = 3;
        /// <summary>
        /// 四试4
        /// </summary>
        public const int SSS_Value = 4;
        /// <summary>
        /// 五试5
        /// </summary>
        public const int WWS_Value = 5;
        /// <summary>
        /// 六试6
        /// </summary>
        public const int LLS_Value = 6;
        /// <summary>
        /// 考试级别字典
        /// </summary>
        public static Dictionary<string, string> DicExamLevel = new Dictionary<string, string>() {
            {"1","初试"}
            //{"0","未考试"},
            //{"1","初试"},{"2","复试"},{"3","三试"},{"4","四试"},{"5","五试"},{"6","六试"}
        };
        /// <summary>
        /// 考试级别字典(包含全部)
        /// </summary>
        public static Dictionary<string, string> DicExamLevel_ALL = new Dictionary<string, string>() {
            { "","全部"},   { "1","初试"}
            //{"0","未考试"},
          //{ "","全部"},   { "1","初试"},{"2","复试"},{"3","三试"},{"4","四试"},{"5","五试"},{"6","六试"}
        };

        public static string GetExamLevel(int examlevel)
        {
            var result = "";
            switch (examlevel)
            {
                case CS_Value:
                    result = CS;
                    break;
                case FS_Value:
                    result = FS;
                    break;
                case SS_Value:
                    result = SS;
                    break;
                case SSS_Value:
                    result = SSS;
                    break;
                case WWS_Value:
                    result = WWS;
                    break;
                case LLS_Value:
                    result = LLS;
                    break;
            }
            return result;
        }
    }
}
